package com.credithc.signature.common.utils;

import org.apache.commons.lang.StringUtils;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2019年10⽉10⽇<br/>
 * @version：v1.0.0<br>
 */
public class LogUtil {

    private static final String MSG_PREFIX = "－消息－: requestSn=";
    private static final String MIDDLE_CHAR = ", ";
    private static final String MSG_SUFFIX = "msg=";

    public static String outPut(String requestSn, String message) {
        if (StringUtils.isBlank(requestSn)) {
            requestSn = UUIDUtil.getUUID();
        }
        return MSG_PREFIX + requestSn + MIDDLE_CHAR + MSG_SUFFIX + message;
    }


    public static void main(String[] args) {
        System.out.println(LogUtil.outPut(null, "测试异常信息打印"));
    }
}
